package com.mryang.hds.mapper;

import com.mryang.hds.entity.Recovered;
import com.mryang.hds.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author Genius
 * @version 1.0.0
 * @ClassName DeisolationMapper.java
 * @Description TODO
 * @createTime 2023年04月04日 14:02:00
 */

@Mapper
public interface DeisolationMapper {

    /**
     * 插入解除隔离申请
     * @param userId 用户编号
     * @param submitTime 提交时间
     */
    void insertRecovered(@Param("userId") Integer userId,
                         @Param("submitTime") String submitTime);


    List<Recovered> getDLUsers(@Param("token") User token);

    List<Recovered> getSearchDISUsers(@Param("searchFlag") String searchFlag,
                                      @Param("input") String input,
                                      @Param("token") User token);

    void checkDTUser(@Param("recoveredId") Integer recoveredId,
                     @Param("checked") Boolean checked,
                     @Param("auditId") Integer auditId,
                     @Param("auditTime") String auditTime);
}
